package com.wxdc.nmgyt.nmgytwydc.common;

import android.content.Context;

import com.syd.oden.circleprogressdialog.core.CircleProgressDialog;

/**
 * Created by Administrator on 2018/5/4.
 */

public class CustomDialog {
    private CircleProgressDialog mCircleProgressDialog;
    public CustomDialog(Context context,String msg) {
        mCircleProgressDialog = new CircleProgressDialog(context);
        mCircleProgressDialog.setText(msg);//("确定当前位置信息...");
        mCircleProgressDialog.setCancelable(false);
        MyCircleProgressDialog.initCircleProgressDialog(mCircleProgressDialog);
    }
    public void showDialog(){
        if (mCircleProgressDialog != null) {
            mCircleProgressDialog.showDialog();
        }
    }
    public void hideDialog(){
        if (mCircleProgressDialog != null && mCircleProgressDialog.isShowing()) {
            mCircleProgressDialog.dismiss();
        }
    }
}
